﻿Public Class DMQuanHuyen

      Public Sub New()
        InitializeComponent()
        Me.setObj(Me.PCV_CLINICDataSet_Don, Me.PCV_CLINICDataSet_Don.DMQuanHuyen, Me.DMQuanHuyenBindingSource, Me.TableAdapterManager, DMQuanHuyenTableAdapter, MaITextEdit)
    End Sub

    Private Sub DMQuanHuyen_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'PCV_CLINICDataSet_Don.DMTinhTrang' table. You can move, or remove it, as needed.
        Me.DMTinhTrangTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMTinhTrang)
        Me.DMTinhThanhTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMTinhThanh)
        Me.DMQuocGiaTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMQuocGia)
        Me.DMQuanHuyenTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMQuanHuyen)

    End Sub

    Private Shadows Sub BarButtonItemBaoCao_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItemBaoCao.ItemClick
        Dim report As Rp_DMQuanHuyen = New Rp_DMQuanHuyen
        report.ShowRibbonPreview()
    End Sub

    Private Sub MatinhthanhISearchLookupEdit_Enter(sender As Object, e As EventArgs) Handles MatinhthanhISearchLookupEdit.Enter
        '  ah anh bắt sự kiện enter của nó rồi dùng rowfilter
        Me.DMTinhThanhBindingSource.Filter = "maquocgia='" & Me.MaquocgiaISearchLookupEdit.EditValue.ToString & "'"

    End Sub
End Class
